/*
+--------------------------
| FreeloaderOS v0.0.1
|  - Microkernel
+--------------------------
| Written by Alec Hussey
| Copyright (c) 2007
|  - Deus X Foundation
+---------------------------
*/

/*
 * Memory Manager
 */

#ifndef _MEMORY_H
#define _MEMORY_H

#define NULL 0
#define BLOCK 1024

static union header
{
	struct
	{
		union header *link;
		unsigned size;
	} s;
	union align
	{
		double d;
		unsigned u;
		void (*f)(void);
	} x;
} freelist = {&freelist, 0}, *freep = &freelist;

extern void sbrk();

#endif
